package client;

import java.io.IOException;
import java.net.Socket;
import java.util.Scanner;

public class ClientMastermind {
	
	String username, password;
	Scanner input;
	Socket socket;
	ClientController controller;
	
	public ClientMastermind() throws IOException, ClassNotFoundException{
		
		super();
		int port;
		String ip;
		
		Scanner input = new Scanner(System.in);
		System.out.print("Enter a port number to connect to:");
		port = Integer.parseInt(input.nextLine());
		System.out.print("Enter an IP to connect to:");
		ip = input.nextLine();
		socket = new Socket(ip, port);
		
		controller = new ClientController(this);
		
	}
	
	public static void main(String args[]) throws IOException, ClassNotFoundException{
		ClientMastermind client = new ClientMastermind();
	}
	
	
	
	public Socket getSocket(){
		return this.socket;
	}

}
